package com.hframe.typefilter;

/**
 * 字符串转数字
 *
 * @author Administrator
 */
public class StringToCharacter implements FilterRef<Character, Object> {

    @Override
    public Character filter(Object object) throws Exception {
        return ((String) object).charAt(1);
    }

    public static Character parse(String object) {
        try {
            return object.charAt(1);
        } catch (Exception e) {
            return null;
        }

    }


}